// DialogMotifsChoices.cpp : implementation file
//

#include "stdafx.h"
#include "testSVG.h"
#include "DialogMotifsChoices.h"
#include ".\dialogmotifschoices.h"


// CDialogMotifsChoices dialog

IMPLEMENT_DYNAMIC(CDialogMotifsChoices, CDialog)
CDialogMotifsChoices::CDialogMotifsChoices(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogMotifsChoices::IDD, pParent)
{
}

CDialogMotifsChoices::~CDialogMotifsChoices()
{
}

void CDialogMotifsChoices::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CDialogMotifsChoices, CDialog)
	ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()


// CDialogMotifsChoices message handlers

void CDialogMotifsChoices::OnBnClickedOk()
{
	CButton* checkFBL3 = (CButton*) GetDlgItem(IDC_CHECK_FBL3);
	CButton* checkFBL4 = (CButton*) GetDlgItem(IDC_CHECK_FBL4);
	CButton* checkFFL3 = (CButton*) GetDlgItem(IDC_CHECK_FFL3);
	CButton* checkFFL4 = (CButton*) GetDlgItem(IDC_CHECK_FFL4);
	CButton* checkBifans = (CButton*) GetDlgItem(IDC_CHECK_BIFANS);
	CButton* checkScaffolds = (CButton*) GetDlgItem(IDC_CHECK_SCAFFOLDS);
	
	m_checkFBL3 = checkFBL3->GetCheck();
	m_checkFBL4 = checkFBL4->GetCheck();

	m_checkFFL3 = checkFFL3->GetCheck();
	m_checkFFL4 = checkFFL4->GetCheck();
	
	m_checkBifans = checkBifans->GetCheck();
	m_checkScaffolds = checkScaffolds->GetCheck();

	OnOK();
}

BOOL CDialogMotifsChoices::OnInitDialog()
{
	CDialog::OnInitDialog();

	CButton* checkFBL3 = (CButton*) GetDlgItem(IDC_CHECK_FBL3);
	CButton* checkFBL4 = (CButton*) GetDlgItem(IDC_CHECK_FBL4);
	
	CButton* checkFFL3 = (CButton*) GetDlgItem(IDC_CHECK_FFL3);
	CButton* checkFFL4 = (CButton*) GetDlgItem(IDC_CHECK_FFL4);
	
	CButton* checkBifans = (CButton*) GetDlgItem(IDC_CHECK_BIFANS);
	CButton* checkScaffolds = (CButton*) GetDlgItem(IDC_CHECK_SCAFFOLDS);
	
	checkFBL3->SetCheck(1);
	checkFBL4->SetCheck(1);
	checkFFL3->SetCheck(1);
	checkFFL4->SetCheck(1);
	checkBifans->SetCheck(1);
	checkScaffolds->SetCheck(1);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
